package cn.edu.gsau.info.models;

import cn.edu.gsau.info.vo.FileList;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

;

/**
 * <p>
 * 
 * </p>
 *
 * @author jinjiang
 * @since 2022-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_zhuanlizhuanzhu")
public class Zhuanlizhuanzhu implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    private Long tianbaoId;

    private String tianbaoName;

    private String name;

    private String zhuanliHao;

    private Integer zongRenShu;

    private Integer meSort;

    private LocalDate shouYuDate;

    private String createBy;

    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private String updateBy;

    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    private String status;

    private String node;

    private String manager;

    @TableLogic
    private Integer deleted;

    private String memo;

    @TableField(exist = false)
    private FileList[] fileList;
}
